<?php

namespace app\admin\controller;

use app\admin\model\Category;

/**
 * @author zero
 * @Time 2018/12/19
 *
 * Class Subscribe
 * @package app\admin\controller
 *
 * 分类相关接口
 */
class Categorys extends Base
{
    // 获取分类列表
    public function get()
    {
        $pid = $this->request->param('pid');
        $catregory = Category::where(['delstatus' => 1, 'pid' => $pid])->select();
        return $catregory;
    }
}
